using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using mvLibrary.Helpers.Utils;

namespace fenk.Admin.RetGanancias
{
    public partial class ImprimirRetGcias : mvLibrary.BaseForm
    {
        public ImprimirRetGcias()
        {
            InitializeComponent();
        }
        public override void BeforeSaveItem()
        {
            // permite imprimir solo retenciones marcadas como 'D'efinitivas
            if (UniItem.ExtractAsString(10) != "D")
            {
                CancelSaveItem = true;
                ErrorMessage = "Solo es posible imprimir retenciones definitivas !";
            }
        }

        private void ImprimirRetGcias_Load(object sender, EventArgs e)
        {

        }
    }
}

